public class Stars {
	public static void main(String[] args) {
		//打印空心金字塔
		//化繁为简
		//先死后活
		int range = 10;
		for(int i = 1; i <= range; i++) {

			for(int j = 1; j < range + i; j++){
				if(j > range + 1 - i && j < range - 1 + i && i < range)
				System.out.print(" ");
				else if(j > range - i){
				System.out.print("*");
			    }
				else{
					System.out.print(" ");
				}

			}
			System.out.println("");
		}
	}
}